package com.yxe.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
;
import com.yxe.dto.ContractImage;
import com.yxe.mapper.ContractMapper;
import com.yxe.pojo.Contract;
import com.yxe.service.ContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yangl
 * @since 2022-12-08
 */
@Service
public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract> implements ContractService {

    @Autowired
    private ContractMapper contractMapper;

    @Override
    public void addContract(Contract contract) {


        contractMapper.addContract(contract) ;
    }

    @Override
    public ContractImage lookContract(Integer userId) {
        return contractMapper.lookContract(userId);
    }
}
